<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" 
xmlns:f="http://java.sun.com/jsf/core" 
xmlns:h="http://java.sun.com/jsf/html" 
xmlns:p="http://primefaces.org/ui" 
version="2.0">
    <jsp:directive.page language="java"
        contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
    <jsp:text>
        <![CDATA[ <?xml version="1.0" encoding="UTF-8" ?> ]]>
    </jsp:text>
    <jsp:text>
        <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
    </jsp:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<f:view>
	<h:form>
		<h:panelGrid columns="3">
		<h:outputText value="Nome: "></h:outputText>
		<h:inputText value="#{alunoBean.aluno.nome}" size="30" required="true"></h:inputText>
		<h:message for="Nome" style="color: blue"></h:message>
		</h:panelGrid>
		<h:panelGrid columns="3">	
		<h:outputText value="Idade:   "></h:outputText>
		<h:inputText value="#{alunoBean.aluno.idade}" size="30" required="true"></h:inputText>
		<h:message for="Idade" style="color: blue"></h:message>
		</h:panelGrid>
		<h:commandButton value="Salvar" action="#{alunoBean.salvar}"/>
		<h:commandButton value="Cancelar" action="#{alunoBean.cancelaAluno}" immediate="true"/>
		<h:commandButton value="Menu Principal" action="index" immediate="true"/>
	</h:form>
</f:view>
</body>
</html>
</jsp:root>